package com.ciaojian.worker.pay;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 优惠券微信支付 Bean
 * @author Atlakyn
 */
@Component
@Data
@PropertySource("classpath:/application.yml")
@ConfigurationProperties(prefix = "wxpay")
public class WxPayBean {
    /**
     * 小程序 appid
     */
    private String appId;


    private String appSecret;

    /**
     * 微信支付的商户id
     */
    private String mchId;

    /**
     * 微信支付的商户密钥
     */
    private String key;

    private String certPath;

    private String domain;

    /**
     * 交易类型，小程序支付的固定值为JSAPI
     */
    private String tradeType;

    /**
     * 支付成功后的服务器回调url
     */
    private String notifyUrl;
}
